<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发送请求</title>
</head>
<body>
    <div class="wrapper">
        <input type="text" class="username">
        <input type="text" class="password">
        <button>登录</button>
    </div>
</body>

    <script>
        import axios from 'axios'
        var btn = document.querySelector('button')
        btn.addEventListener('click',function(){
            axios.post(`http://127.0.0.1:3007?username = zaw ? password = 797806`)
        })
    </script>
</html>